<div class="layui-container" style="width: 100%;padding-top: 20px">
    <table border="2"
           style="width: 100%;">
        <#if (maxFloor?? && maxFloor > 0)>
            <#list maxFloor..minFloor as floor>
                <tr>
                    <#assign rowspan=1/>

                    <#if floorAndHouseNumForHouseMap[floor?string]??>
                        <#assign rowspan=rowNum/>
                    </#if>
                    <td style="color: white;width: 60px;height: 54px" rowspan="${rowspan}">
                            <span style="padding-left: 5px;text-align: center;font-size: 20px;">
                                <#if (floor > 9)>
                                    ${floor}层
                                <#else>
                                    &nbsp;&nbsp;${floor}层
                                </#if>
                            </span>
                    </td>

                    <#if floorAndHouseNumForHouseMap[floor?string]??>
                        <#assign houseNumMap=floorAndHouseNumForHouseMap[floor?string]/>
                        <#if (maxHouseNum?? && maxHouseNum > 0)>
                            <#list 1..maxHouseNum as houseNumStr>
                                <#if houseNumMap[houseNumStr?string]??>
                                    <#assign house=houseNumMap[houseNumStr?string]/>
                                    <td style="width: 60px;height:53px;border-right: hidden;padding-left: 3px">
                                        <#assign houseHold=house.houseHold/>
                                        <#assign houseStatus=house.houseStatus/>
                                        <span class="layui-badge"
                                              style="font-size: 23px;margin-top: 0px;line-height: 17px;padding-top: 0px;text-align: center;width: 60px;height:53px;background-color: ${colorMap[houseStatus?string]};font-weight: bold;">
                                        <span style="color: white;font-size: 13px;">${houseHoldMap[house.houseHold?string]}</span>
                                        <br/>
                                        <span style="color:#fffb61">${(house.houseNum)!}</span>
                                        <br/>
                                        <span style="color: white;font-size: 13px;">${(house.buildArea)!}</span>
                                    </span>
                                    </td>
                                <#else>
                                    <td style="width: 60px;height:54px;border-right: hidden;padding-left: 3px">
                                    </td>
                                </#if>

                            </#list>
                        </#if>
                    </#if>
                </tr>
            </#list>
        </#if>
    </table>
</div>

